﻿<ion-modal-view>
    <ion-header-bar>
        <div class="item-input-inset" style="width:100%;">
            <label class="item-input-wrapper">
                <i class="icon ion-ios-search placeholder-icon"></i>
                <input type="search" ng-model="searchData.keyword" placeholder="搜索">
            </label>
            <button class="button button-clear" ng-click="doSearch()">
                搜索
            </button>
            <button class="button button-clear" ng-click="closeSearchModal()">
                取消
            </button>
        </div>
    </ion-header-bar>
    <ion-content>
        <div class="lr-searchTitle" ng-hide="searchData.records == 0 "><span>搜索结果 {{searchData.records}} 条</span></div>
        <div class="list  list-inset lr-list-type2" style="margin-top:0px;">
            <ion-list>
                <ion-item ng-repeat="business in searchData.businesss" class="mt10" ng-click="openDetailsModal(business.chanceId)">
                    <div class="row">
                      <div class="col-80"><span class="lr-title">{{business.fullName}}</span></div>
                      <div class="col-20"><span class="lr-title" style="text-align:right;">{{business.lastDate}}</span></div>
                    </div>
                    <div class="row">
                        <div class="col-33"><div class="lr-label {{business.bgStageColor}}">{{business.stageName}}</div></div>
                        <div class="col-33 lr-item-content">
                          <p><i class="icon ion-ios-person positive"></i><span>{{business.contacts}}</span></p>
                          <p><i class="icon ion-ios-telephone-outline royal"></i><span>{{business.mobile}}</span></p>
                        </div>
                        <div class="col-33 lr-item-content">
                          <p><i class="icon iconfont balanced">&#xe616;</i><span>{{business.amount}}元</span></p>
                          <p><i class="icon iconfont energized">&#xe67c;</i><span>{{business.qQ}}</span></p>
                        </div>
                    </div>
                    <ion-option-button ng-click="doDelete(business)"><span class="lr-trash-circled"><i class="icon ion-ios-trash-outline"></i></span></ion-option-button>
                </ion-item>
            </ion-list>
        </div>
        <ion-infinite-scroll ng-if="searchData.moredata" on-infinite="loadMoreSearch()" distance="1%"></ion-infinite-scroll>
    </ion-content>
</ion-modal-view>
